﻿namespace AnyOffice.Model
{
    using System;

    public class VoteItemData
    {
        protected int _itemId = -1;
        protected string _itemName = string.Empty;
        protected int _voteCount;
        protected int _voteId;
        protected object _voteUser;

        public int ItemId
        {
            get
            {
                return this._itemId;
            }
            set
            {
                this._itemId = value;
            }
        }

        public string ItemName
        {
            get
            {
                return this._itemName;
            }
            set
            {
                this._itemName = value;
            }
        }

        public int VoteCount
        {
            get
            {
                return this._voteCount;
            }
            set
            {
                this._voteCount = value;
            }
        }

        public int VoteId
        {
            get
            {
                return this._voteId;
            }
            set
            {
                this._voteId = value;
            }
        }

        public string VoteUser
        {
            get
            {
                return (string) this._voteUser;
            }
            set
            {
                this._voteUser = value;
            }
        }

        public bool VoteUserIsNull
        {
            get
            {
                return (this._voteUser == null);
            }
            set
            {
                if (value)
                {
                    this._voteUser = null;
                }
            }
        }
    }
}

